package com.gmall.console.system.controller;

import com.gmall.console.base.Result;
import com.gmall.console.system.entity.Shoping;
import com.gmall.console.system.service.IUserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Jone
 * @since 2024-05-27
 */
@Controller
@Tag(name = "商铺管理API", description = "商铺 API")
@RequestMapping("/shoping")
public class ShopingController {

    @PostMapping("/all")
    @Operation(summary = "商铺信息", description = "商铺信息描述")
    public Result<Shoping> findAll(String userName,String password){


        return Result.success();
    }

    @GetMapping("/list")
    @Schema(description = "执行的测试模型list集合",name = "接口")
    public Result<Object> list() {
        String data = "hello world!";
        return Result.success(data,"查询成功");
    }
}
